package cn.demomaster.quickui.view.tabmenu;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.demomaster.quickcompat.widget.popup.QuickPopupWindow;

import cn.demomaster.quickui.R;

public class TabMenuPopupWindow extends QuickPopupWindow {
    public TabMenuPopupWindow(Context context) {
        super(context);
    }

    public TabMenuPopupWindow(View contentView, int width, int height) {
        super(contentView, width, height);
    }

    public TabMenuPopupWindow(Context context, Builder builder) {
        super(context, builder);
    }

    public static class Builder extends QuickPopupWindow.Builder<Builder>{

        public Builder(Context context) {
            super(context);
            setContentView(R.layout.quick_layout_tab_menu_popup);
            setOutsideTouchable(true);
            setWidth(ViewGroup.LayoutParams.MATCH_PARENT);
        }

        @Override
        public TabMenuPopupWindow create() {
            return new TabMenuPopupWindow(contextWeakReference.get(), this);
        }
    }
}
